package com.wsoft.form.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wsoft.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 自定义表单-设计表
 * </p>
 *
 * @author Z001
 * @since 2024年08月29日 09:11:06
 */
@Getter
@Setter
@TableName("wf_form_design")
@Schema(name = "WfFormDesignEntity", description = "自定义表单-设计表")
public class WfFormDesignEntity extends BaseEntity {

    @Schema(description = "页面id")
    @TableField("form_id")
    private Long formId;

    @Schema(description = "表单编码")
    @TableField("form_design_code")
    private String formDesignCode;

    @Schema(description = "表单名称")
    @TableField("form_design_name")
    private String formDesignName;

    @Schema(description = "表单类型")
    @TableField("form_design_type")
    private Integer formDesignType;

    @Schema(description = "表单主表id")
    @TableField("table_id")
    private Long tableId;

    @Schema(description = "表单组件JSON")
    @TableField("page_vue")
    private String pageVue;

    @Schema(description = "表单参数JSON")
    @TableField("params_json")
    private String paramsJson;

    @Schema(description = "关联子表 (id,name)逗号分隔")
    @TableField("son_object")
    private String sonObject;

    @Schema(description = "子表布局方式")
    @TableField("son_layout_type")
    private String sonLayoutType;
}
